home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / ddx / sprite.X11R3 / hdr / pr_planegroups.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-03  |  1021 b   |  39 lines

  1. /*    @(#)pr_planegroups.h 1.7 88/09/21 SMI    */
  2.  
  3. /*
  4.  * Copyright 1986 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. #ifndef    pr_planegroups_DEFINED
  8. #define    pr_planegroups_DEFINED
  9.  
  10. /* Masks for frame buffer planes and plane group number */
  11. #define    PIX_ALL_PLANES        0x00FFFFFF
  12. #define    PIX_GROUP_MASK        0x7F
  13.  
  14. /* Macros to encode or extract group into or from attribute word */
  15. #define    PIX_GROUP(g)        ((g) << 25)
  16. #define    PIX_ATTRGROUP(attr)    ((unsigned)(attr) >> 25)
  17.  
  18. /* Flag bit which inhibits plane mask setting (for setting group only) */
  19. #define    PIX_DONT_SET_PLANES    (1 << 24)
  20.  
  21. /*  Plane groups definitions */
  22. #define    PIXPG_CURRENT        0
  23. #define PIXPG_MONO        1
  24. #define PIXPG_8BIT_COLOR    2
  25. #define PIXPG_OVERLAY_ENABLE    3
  26. #define PIXPG_OVERLAY         4
  27. #define PIXPG_24BIT_COLOR    5
  28. #define PIXPG_VIDEO        6
  29. #define PIXPG_VIDEO_ENABLE    7
  30. #define    PIXPG_INVALID        127
  31.  
  32. /* Plane groups functions */
  33. extern int pr_available_plane_groups();
  34. extern int pr_get_plane_group();
  35. extern void pr_set_plane_group();
  36. extern void pr_set_planes();
  37.  
  38. #endif    pr_planegroups_DEFINED
  39.